package com.personal.service;


import com.personal.domain.Industry;
import com.personal.domain.obtain.IndustryDireTree;
import com.personal.util.partDisplay.IndividualPart;
import com.personal.util.partDisplay.IndustryPart;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IndustryService {

    List<Industry> selectAll();

    List<IndustryPart> selectPartAll();

    //点击目录树，获取industryId的list
    List<IndustryPart> selectPartByIds(List<Integer> industryIds);

    List<IndustryPart> selectPartByKey(String name);

    boolean add(Industry industry);

    Industry getUpdateData(int industryId);
    boolean update(Industry industry);

    boolean delete(int industryId);

    List<IndustryDireTree> getDirectory(Integer parentId);





}
